﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_GiaTriMacDinh : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("C1DockingTabPage4")]
        private C1DockingTabPage _C1DockingTabPage4;
        [AccessedThroughProperty("C1DockingTabPage6")]
        private C1DockingTabPage _C1DockingTabPage6;
        [AccessedThroughProperty("C1FlexGrid2")]
        private C1.Win.C1FlexGrid.C1FlexGrid _C1FlexGrid2;
        [AccessedThroughProperty("CboKho")]
        private ComboBox _CboKho;
        [AccessedThroughProperty("CboLoaiIn")]
        private ComboBox _CboLoaiIn;
        [AccessedThroughProperty("CboMauMD")]
        private ComboBox _CboMauMD;
        [AccessedThroughProperty("CheckBox2")]
        private CheckBox _CheckBox2;
        [AccessedThroughProperty("CKAmQuy")]
        private CheckBox _CKAmQuy;
        [AccessedThroughProperty("CKHanDung")]
        private CheckBox _CKHanDung;
        [AccessedThroughProperty("CKKhongCheCongNo")]
        private CheckBox _CKKhongCheCongNo;
        [AccessedThroughProperty("CKQuayKe")]
        private CheckBox _CKQuayKe;
        [AccessedThroughProperty("CKTachThue")]
        private CheckBox _CKTachThue;
        [AccessedThroughProperty("CKTheoDoiSeri")]
        private CheckBox _CKTheoDoiSeri;
        [AccessedThroughProperty("CKTheoDoiSeriKhiBan")]
        private CheckBox _CKTheoDoiSeriKhiBan;
        [AccessedThroughProperty("CKTheoDoiSoLo")]
        private CheckBox _CKTheoDoiSoLo;
        [AccessedThroughProperty("CKXuatAm")]
        private CheckBox _CKXuatAm;
        [AccessedThroughProperty("CmdChon")]
        private Button _CmdChon;
        [AccessedThroughProperty("CmdMauHD")]
        private Button _CmdMauHD;
        [AccessedThroughProperty("CmdRefesh")]
        private Button _CmdRefesh;
        [AccessedThroughProperty("CmdSDHD")]
        private Button _CmdSDHD;
        [AccessedThroughProperty("CmdThoat")]
        private Button _CmdThoat;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("GroupBox3")]
        private GroupBox _GroupBox3;
        [AccessedThroughProperty("GroupBox4")]
        private GroupBox _GroupBox4;
        [AccessedThroughProperty("GroupBox5")]
        private GroupBox _GroupBox5;
        [AccessedThroughProperty("GroupBox6")]
        private GroupBox _GroupBox6;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("lblCoQuanThue")]
        private Label _lblCoQuanThue;
        [AccessedThroughProperty("lblDonViChuQuan")]
        private Label _lblDonViChuQuan;
        [AccessedThroughProperty("lblMSTDonViChuQuan")]
        private Label _lblMSTDonViChuQuan;
        [AccessedThroughProperty("OptBinhQuanGiaQuyen")]
        private RadioButton _OptBinhQuanGiaQuyen;
        [AccessedThroughProperty("OptChonHangTuDM")]
        private RadioButton _OptChonHangTuDM;
        [AccessedThroughProperty("OptChonHangXuatTuTK")]
        private RadioButton _OptChonHangXuatTuTK;
        [AccessedThroughProperty("OptDichDanh")]
        private RadioButton _OptDichDanh;
        [AccessedThroughProperty("OptFiFo")]
        private RadioButton _OptFiFo;
        [AccessedThroughProperty("OptLifo")]
        private RadioButton _OptLifo;
        [AccessedThroughProperty("OptTheoNam")]
        private RadioButton _OptTheoNam;
        [AccessedThroughProperty("OptTheoQuy")]
        private RadioButton _OptTheoQuy;
        [AccessedThroughProperty("OptTheoThang")]
        private RadioButton _OptTheoThang;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TabConfig")]
        private C1DockingTab _TabConfig;
        [AccessedThroughProperty("txtLoaiHoaDonInMacDinh")]
        private TextBox _txtLoaiHoaDonInMacDinh;
        [AccessedThroughProperty("updDaNhapTTCT")]
        private NumericUpDown _updDaNhapTTCT;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("updSoLien")]
        private NumericUpDown _updSoLien;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        [AccessedThroughProperty("VS_Lien")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VS_Lien;
        [AccessedThroughProperty("VSListCT")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListCT;
        [AccessedThroughProperty("VSListDK")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListDK;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsConfig objCP;
        private clsSoChungTu objCT;
        private DefaultValue objDK;
        private string pSoKiHieuOld;

        public Frm_GiaTriMacDinh()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_GiaTriMacDinh_KeyDown);
            base.Load += new EventHandler(this.Frm_GiaTriMacDinh_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objDK = new DefaultValue();
            this.objCT = new clsSoChungTu();
            this.objCP = new clsConfig();
            this.pSoKiHieuOld = "";
            this.InitializeComponent();
        }

        private void CmdChon_Click(object sender, EventArgs e)
        {
            this.SaveConfig();
            LVYModule.InitProgram();
            this.Dispose();
        }

        private void CmdMauHD_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DSMauHoaDon.Dispose();
            MyProject.Forms.Frm_DSMauHoaDon.ShowDialog();
        }

        private void CmdRefesh_Click(object sender, EventArgs e)
        {
            this.LoadSoChungTu();
        }

        private void CmdSDHD_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DangKyHoaDonList.Dispose();
            MyProject.Forms.Frm_DangKyHoaDonList.ShowDialog();
        }

        private void CmdThoat_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_GiaTriMacDinh_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                LVYModule.ShowHelp(@"QuanLyHeThong\THIETLAPHOADON.mht");
            }
        }

        private void Frm_GiaTriMacDinh_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboKho, modGeneral.ListDanhMuc.KhoHang, true, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiIn, modGeneral.ListDanhMuc.LoaiIn, false, "", "");
                BuildComboModule.BuildCombo(this.CboMauMD, modGeneral.ListDanhMuc.MauHoaDon, false, "", "");
                this.CboMauMD.SelectedIndex = 0;
                this.LoadDinhKhoan();
                this.LoadConfig();
                this.updNam.Value = new decimal(DateAndTime.Today.Year);
                this.updThang.Value = new decimal(DateAndTime.Today.Month);
                this.LoadSoChungTu();
                this.TabConfig.SelectedIndex = 0;
                this.LoadDSLien(Convert.ToInt32(this.updSoLien.Value));
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_GiaTriMacDinh));
            this.TabConfig = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.GroupBox5 = new GroupBox();
            this.CKAmQuy = new CheckBox();
            this.CheckBox2 = new CheckBox();
            this.GroupBox4 = new GroupBox();
            this.OptChonHangXuatTuTK = new RadioButton();
            this.OptChonHangTuDM = new RadioButton();
            this.CKKhongCheCongNo = new CheckBox();
            this.CKXuatAm = new CheckBox();
            this.CKTheoDoiSeriKhiBan = new CheckBox();
            this.Label3 = new Label();
            this.CKTachThue = new CheckBox();
            this.CboKho = new ComboBox();
            this.GroupBox1 = new GroupBox();
            this.OptDichDanh = new RadioButton();
            this.OptLifo = new RadioButton();
            this.OptFiFo = new RadioButton();
            this.OptBinhQuanGiaQuyen = new RadioButton();
            this.GroupBox2 = new GroupBox();
            this.CKTheoDoiSoLo = new CheckBox();
            this.CKQuayKe = new CheckBox();
            this.CKHanDung = new CheckBox();
            this.CKTheoDoiSeri = new CheckBox();
            this.GroupBox3 = new GroupBox();
            this.OptTheoThang = new RadioButton();
            this.OptTheoQuy = new RadioButton();
            this.OptTheoNam = new RadioButton();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.VSListDK = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            this.VSListCT = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CmdRefesh = new Button();
            this.updThang = new NumericUpDown();
            this.Label2 = new Label();
            this.Label1 = new Label();
            this.updNam = new NumericUpDown();
            this.C1DockingTabPage4 = new C1DockingTabPage();
            this.lblCoQuanThue = new Label();
            this.lblMSTDonViChuQuan = new Label();
            this.lblDonViChuQuan = new Label();
            this.Label5 = new Label();
            this.CboMauMD = new ComboBox();
            this.updDaNhapTTCT = new NumericUpDown();
            this.txtLoaiHoaDonInMacDinh = new TextBox();
            this.CmdSDHD = new Button();
            this.CmdMauHD = new Button();
            this.Label7 = new Label();
            this.CboLoaiIn = new ComboBox();
            this.updSoLien = new NumericUpDown();
            this.Label4 = new Label();
            this.GroupBox6 = new GroupBox();
            this.VS_Lien = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.CmdThoat = new Button();
            this.CmdChon = new Button();
            this.C1DockingTabPage6 = new C1DockingTabPage();
            this.C1FlexGrid2 = new C1.Win.C1FlexGrid.C1FlexGrid();
            ((ISupportInitialize) this.TabConfig).BeginInit();
            this.TabConfig.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.GroupBox5.SuspendLayout();
            this.GroupBox4.SuspendLayout();
            this.GroupBox1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            this.GroupBox3.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.VSListDK.BeginInit();
            this.C1DockingTabPage3.SuspendLayout();
            this.VSListCT.BeginInit();
            this.Panel1.SuspendLayout();
            this.updThang.BeginInit();
            this.updNam.BeginInit();
            this.C1DockingTabPage4.SuspendLayout();
            this.updDaNhapTTCT.BeginInit();
            this.updSoLien.BeginInit();
            this.GroupBox6.SuspendLayout();
            this.VS_Lien.BeginInit();
            this.Panel2.SuspendLayout();
            this.C1DockingTabPage6.SuspendLayout();
            this.C1FlexGrid2.BeginInit();
            this.SuspendLayout();
            this.TabConfig.Controls.Add(this.C1DockingTabPage1);
            this.TabConfig.Controls.Add(this.C1DockingTabPage2);
            this.TabConfig.Controls.Add(this.C1DockingTabPage3);
            this.TabConfig.Controls.Add(this.C1DockingTabPage4);
            this.TabConfig.Dock = DockStyle.Fill;
            Point point = new Point(0, 0);
            this.TabConfig.Location = point;
            this.TabConfig.Name = "TabConfig";
            this.TabConfig.SelectedIndex = 3;
            Size size = new Size(0x27f, 0x1a2);
            this.TabConfig.Size = size;
            this.TabConfig.TabIndex = 0x41;
            this.TabConfig.TabsSpacing = 5;
            this.TabConfig.TabStyle = TabStyleEnum.Office2007;
            this.TabConfig.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.TabConfig.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.GroupBox5);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox4);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox2);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox3);
            this.C1DockingTabPage1.Image = (Image) manager.GetObject("C1DockingTabPage1.Image");
            point = new Point(1, 0x1d);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x27d, 0x184);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "T\x00f9y chọn mặc định";
            this.GroupBox5.BackColor = Color.Transparent;
            this.GroupBox5.Controls.Add(this.CKAmQuy);
            this.GroupBox5.Controls.Add(this.CheckBox2);
            point = new Point(11, 0x124);
            this.GroupBox5.Location = point;
            this.GroupBox5.Name = "GroupBox5";
            size = new Size(0x109, 0x5d);
            this.GroupBox5.Size = size;
            this.GroupBox5.TabIndex = 8;
            this.GroupBox5.TabStop = false;
            this.GroupBox5.Text = "Tổng hợp";
            this.CKAmQuy.AutoSize = true;
            point = new Point(0x12, 0x1d);
            this.CKAmQuy.Location = point;
            this.CKAmQuy.Name = "CKAmQuy";
            size = new Size(0x6d, 0x11);
            this.CKAmQuy.Size = size;
            this.CKAmQuy.TabIndex = 3;
            this.CKAmQuy.Text = "Cho ph\x00e9p \x00e2m quỹ";
            this.CKAmQuy.UseVisualStyleBackColor = true;
            this.CheckBox2.AutoSize = true;
            point = new Point(0x12, 0x75);
            this.CheckBox2.Location = point;
            this.CheckBox2.Name = "CheckBox2";
            size = new Size(0x6d, 0x11);
            this.CheckBox2.Size = size;
            this.CheckBox2.TabIndex = 2;
            this.CheckBox2.Text = "Theo d\x00f5i quầy kệ";
            this.CheckBox2.UseVisualStyleBackColor = true;
            this.GroupBox4.BackColor = Color.Transparent;
            this.GroupBox4.Controls.Add(this.OptChonHangXuatTuTK);
            this.GroupBox4.Controls.Add(this.OptChonHangTuDM);
            this.GroupBox4.Controls.Add(this.CKKhongCheCongNo);
            this.GroupBox4.Controls.Add(this.CKXuatAm);
            this.GroupBox4.Controls.Add(this.CKTheoDoiSeriKhiBan);
            this.GroupBox4.Controls.Add(this.Label3);
            this.GroupBox4.Controls.Add(this.CKTachThue);
            this.GroupBox4.Controls.Add(this.CboKho);
            point = new Point(0x146, 0xac);
            this.GroupBox4.Location = point;
            this.GroupBox4.Name = "GroupBox4";
            size = new Size(300, 0xd6);
            this.GroupBox4.Size = size;
            this.GroupBox4.TabIndex = 7;
            this.GroupBox4.TabStop = false;
            this.GroupBox4.Text = "B\x00e1n h\x00e0ng";
            this.OptChonHangXuatTuTK.AutoSize = true;
            this.OptChonHangXuatTuTK.Checked = true;
            point = new Point(0x12, 0xc2);
            this.OptChonHangXuatTuTK.Location = point;
            this.OptChonHangXuatTuTK.Name = "OptChonHangXuatTuTK";
            size = new Size(0x9d, 0x11);
            this.OptChonHangXuatTuTK.Size = size;
            this.OptChonHangXuatTuTK.TabIndex = 11;
            this.OptChonHangXuatTuTK.TabStop = true;
            this.OptChonHangXuatTuTK.Text = "Chọn h\x00e0ng xuất từ h\x00e0ng tồn";
            this.OptChonHangXuatTuTK.UseVisualStyleBackColor = true;
            this.OptChonHangTuDM.AutoSize = true;
            point = new Point(0x12, 0xac);
            this.OptChonHangTuDM.Location = point;
            this.OptChonHangTuDM.Name = "OptChonHangTuDM";
            size = new Size(0xa2, 0x11);
            this.OptChonHangTuDM.Size = size;
            this.OptChonHangTuDM.TabIndex = 10;
            this.OptChonHangTuDM.Text = "Chọn h\x00e0ng xuất từ danh mục";
            this.OptChonHangTuDM.UseVisualStyleBackColor = true;
            this.CKKhongCheCongNo.AutoSize = true;
            point = new Point(0x10, 0x69);
            this.CKKhongCheCongNo.Location = point;
            this.CKKhongCheCongNo.Name = "CKKhongCheCongNo";
            size = new Size(0x105, 0x11);
            this.CKKhongCheCongNo.Size = size;
            this.CKKhongCheCongNo.TabIndex = 9;
            this.CKKhongCheCongNo.Text = "Kh\x00f4ng xuất h\x00e0ng đối với kh\x00e1ch nợ vượt định mức";
            this.CKKhongCheCongNo.UseVisualStyleBackColor = true;
            this.CKXuatAm.AutoSize = true;
            point = new Point(0x10, 0x4f);
            this.CKXuatAm.Location = point;
            this.CKXuatAm.Name = "CKXuatAm";
            size = new Size(0x85, 0x11);
            this.CKXuatAm.Size = size;
            this.CKXuatAm.TabIndex = 8;
            this.CKXuatAm.Text = "Cho ph\x00e9p xuất \x00e2m kho";
            this.CKXuatAm.UseVisualStyleBackColor = true;
            this.CKTheoDoiSeriKhiBan.AutoSize = true;
            point = new Point(0x10, 0x34);
            this.CKTheoDoiSeriKhiBan.Location = point;
            this.CKTheoDoiSeriKhiBan.Name = "CKTheoDoiSeriKhiBan";
            size = new Size(0x93, 0x11);
            this.CKTheoDoiSeriKhiBan.Size = size;
            this.CKTheoDoiSeriKhiBan.TabIndex = 5;
            this.CKTheoDoiSeriKhiBan.Text = "Theo d\x00f5i số serial khi b\x00e1n";
            this.CKTheoDoiSeriKhiBan.UseVisualStyleBackColor = true;
            this.Label3.AutoSize = true;
            point = new Point(15, 0x7f);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(100, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 6;
            this.Label3.Text = "Kho h\x00e0ng mặc định";
            this.CKTachThue.AutoSize = true;
            point = new Point(0x10, 0x1a);
            this.CKTachThue.Location = point;
            this.CKTachThue.Name = "CKTachThue";
            size = new Size(0x83, 0x11);
            this.CKTachThue.Size = size;
            this.CKTachThue.TabIndex = 4;
            this.CKTachThue.Text = "Gi\x00e1 b\x00e1n bao gồm thuế";
            this.CKTachThue.UseVisualStyleBackColor = true;
            this.CboKho.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboKho.FormattingEnabled = true;
            point = new Point(0x11, 0x8f);
            this.CboKho.Location = point;
            this.CboKho.Name = "CboKho";
            size = new Size(0x115, 0x15);
            this.CboKho.Size = size;
            this.CboKho.TabIndex = 5;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.OptDichDanh);
            this.GroupBox1.Controls.Add(this.OptLifo);
            this.GroupBox1.Controls.Add(this.OptFiFo);
            this.GroupBox1.Controls.Add(this.OptBinhQuanGiaQuyen);
            point = new Point(12, 13);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x108, 150);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Phương ph\x00e1p t\x00ednh gi\x00e1 h\x00e0ng tồn kho";
            this.OptDichDanh.AutoSize = true;
            this.OptDichDanh.Enabled = false;
            point = new Point(20, 0x36);
            this.OptDichDanh.Location = point;
            this.OptDichDanh.Name = "OptDichDanh";
            size = new Size(0x7f, 0x11);
            this.OptDichDanh.Size = size;
            this.OptDichDanh.TabIndex = 4;
            this.OptDichDanh.Text = "Nhập xuất đ\x00edch danh";
            this.OptDichDanh.UseVisualStyleBackColor = true;
            this.OptLifo.AutoSize = true;
            this.OptLifo.Enabled = false;
            point = new Point(20, 110);
            this.OptLifo.Location = point;
            this.OptLifo.Name = "OptLifo";
            size = new Size(0x8f, 0x11);
            this.OptLifo.Size = size;
            this.OptLifo.TabIndex = 3;
            this.OptLifo.Text = "Nhập sau xuất trước (lifo)";
            this.OptLifo.UseVisualStyleBackColor = true;
            this.OptFiFo.AutoSize = true;
            this.OptFiFo.Enabled = false;
            point = new Point(20, 0x52);
            this.OptFiFo.Location = point;
            this.OptFiFo.Name = "OptFiFo";
            size = new Size(0x97, 0x11);
            this.OptFiFo.Size = size;
            this.OptFiFo.TabIndex = 2;
            this.OptFiFo.Text = "Nhập trước xuất trước (fifo)";
            this.OptFiFo.UseVisualStyleBackColor = true;
            this.OptBinhQuanGiaQuyen.AutoSize = true;
            this.OptBinhQuanGiaQuyen.Checked = true;
            point = new Point(20, 0x1b);
            this.OptBinhQuanGiaQuyen.Location = point;
            this.OptBinhQuanGiaQuyen.Name = "OptBinhQuanGiaQuyen";
            size = new Size(0x7a, 0x11);
            this.OptBinhQuanGiaQuyen.Size = size;
            this.OptBinhQuanGiaQuyen.TabIndex = 1;
            this.OptBinhQuanGiaQuyen.TabStop = true;
            this.OptBinhQuanGiaQuyen.Text = "B\x00ecnh qu\x00e2n gia quyền";
            this.OptBinhQuanGiaQuyen.UseVisualStyleBackColor = true;
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.CKTheoDoiSoLo);
            this.GroupBox2.Controls.Add(this.CKQuayKe);
            this.GroupBox2.Controls.Add(this.CKHanDung);
            this.GroupBox2.Controls.Add(this.CKTheoDoiSeri);
            point = new Point(0x146, 13);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x12e, 150);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Theo d\x00f5i h\x00e0ng tồn";
            this.CKTheoDoiSoLo.AutoSize = true;
            point = new Point(0x12, 0x1d);
            this.CKTheoDoiSoLo.Location = point;
            this.CKTheoDoiSoLo.Name = "CKTheoDoiSoLo";
            size = new Size(120, 0x11);
            this.CKTheoDoiSoLo.Size = size;
            this.CKTheoDoiSoLo.TabIndex = 3;
            this.CKTheoDoiSoLo.Text = "Theo d\x00f5i số l\x00f4 h\x00e0ng";
            this.CKTheoDoiSoLo.UseVisualStyleBackColor = true;
            this.CKQuayKe.AutoSize = true;
            point = new Point(0x12, 0x75);
            this.CKQuayKe.Location = point;
            this.CKQuayKe.Name = "CKQuayKe";
            size = new Size(0x6d, 0x11);
            this.CKQuayKe.Size = size;
            this.CKQuayKe.TabIndex = 2;
            this.CKQuayKe.Text = "Theo d\x00f5i quầy kệ";
            this.CKQuayKe.UseVisualStyleBackColor = true;
            this.CKHanDung.AutoSize = true;
            point = new Point(0x12, 0x3b);
            this.CKHanDung.Location = point;
            this.CKHanDung.Name = "CKHanDung";
            size = new Size(130, 0x11);
            this.CKHanDung.Size = size;
            this.CKHanDung.TabIndex = 1;
            this.CKHanDung.Text = "Theo d\x00f5i hạn sử dụng";
            this.CKHanDung.UseVisualStyleBackColor = true;
            this.CKTheoDoiSeri.AutoSize = true;
            this.CKTheoDoiSeri.Enabled = false;
            point = new Point(0x12, 0x58);
            this.CKTheoDoiSeri.Location = point;
            this.CKTheoDoiSeri.Name = "CKTheoDoiSeri";
            size = new Size(0x99, 0x11);
            this.CKTheoDoiSeri.Size = size;
            this.CKTheoDoiSeri.TabIndex = 0;
            this.CKTheoDoiSeri.Text = "Theo d\x00f5i số serial khi nhập";
            this.CKTheoDoiSeri.UseVisualStyleBackColor = true;
            this.GroupBox3.BackColor = Color.Transparent;
            this.GroupBox3.Controls.Add(this.OptTheoThang);
            this.GroupBox3.Controls.Add(this.OptTheoQuy);
            this.GroupBox3.Controls.Add(this.OptTheoNam);
            point = new Point(13, 0xac);
            this.GroupBox3.Location = point;
            this.GroupBox3.Name = "GroupBox3";
            size = new Size(0x107, 0x71);
            this.GroupBox3.Size = size;
            this.GroupBox3.TabIndex = 2;
            this.GroupBox3.TabStop = false;
            this.GroupBox3.Text = "Số chứng từ";
            this.OptTheoThang.AutoSize = true;
            point = new Point(0x11, 0x37);
            this.OptTheoThang.Location = point;
            this.OptTheoThang.Name = "OptTheoThang";
            size = new Size(0xa1, 0x11);
            this.OptTheoThang.Size = size;
            this.OptTheoThang.TabIndex = 7;
            this.OptTheoThang.Text = "Tự động thay đổi theo th\x00e1ng";
            this.OptTheoThang.UseVisualStyleBackColor = true;
            this.OptTheoQuy.AutoSize = true;
            point = new Point(0x11, 0x53);
            this.OptTheoQuy.Location = point;
            this.OptTheoQuy.Name = "OptTheoQuy";
            size = new Size(0x97, 0x11);
            this.OptTheoQuy.Size = size;
            this.OptTheoQuy.TabIndex = 6;
            this.OptTheoQuy.Text = "Tự động thay đổi theo qu\x00fd";
            this.OptTheoQuy.UseVisualStyleBackColor = true;
            this.OptTheoNam.AutoSize = true;
            this.OptTheoNam.Checked = true;
            point = new Point(0x11, 0x1c);
            this.OptTheoNam.Location = point;
            this.OptTheoNam.Name = "OptTheoNam";
            size = new Size(0x9a, 0x11);
            this.OptTheoNam.Size = size;
            this.OptTheoNam.TabIndex = 5;
            this.OptTheoNam.TabStop = true;
            this.OptTheoNam.Text = "Tự động thay đổi theo năm";
            this.OptTheoNam.UseVisualStyleBackColor = true;
            this.C1DockingTabPage2.Controls.Add(this.VSListDK);
            this.C1DockingTabPage2.Image = (Image) manager.GetObject("C1DockingTabPage2.Image");
            point = new Point(1, 0x1d);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x27d, 0x184);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 1;
            this.C1DockingTabPage2.Text = "Định khoản mặc định";
            this.VSListDK.AutoResize = false;
            this.VSListDK.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSListDK.ColumnInfo = manager.GetString("VSListDK.ColumnInfo");
            this.VSListDK.Dock = DockStyle.Fill;
            this.VSListDK.ExtendLastCol = true;
            this.VSListDK.FocusRect = FocusRectEnum.None;
            point = new Point(0, 0);
            this.VSListDK.Location = point;
            this.VSListDK.Name = "VSListDK";
            this.VSListDK.Rows.Count = 1;
            this.VSListDK.Rows.DefaultSize = 0x11;
            this.VSListDK.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x27d, 0x184);
            this.VSListDK.Size = size;
            this.VSListDK.StyleInfo = manager.GetString("VSListDK.StyleInfo");
            this.VSListDK.TabIndex = 1;
            this.VSListDK.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.C1DockingTabPage3.Controls.Add(this.VSListCT);
            this.C1DockingTabPage3.Controls.Add(this.Panel1);
            this.C1DockingTabPage3.Image = (Image) manager.GetObject("C1DockingTabPage3.Image");
            point = new Point(1, 0x1d);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x27d, 0x184);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 2;
            this.C1DockingTabPage3.Text = "Cập nhật số chứng từ";
            this.VSListCT.AutoResize = false;
            this.VSListCT.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSListCT.ColumnInfo = manager.GetString("VSListCT.ColumnInfo");
            this.VSListCT.Dock = DockStyle.Fill;
            this.VSListCT.ExtendLastCol = true;
            this.VSListCT.FocusRect = FocusRectEnum.None;
            point = new Point(0, 30);
            this.VSListCT.Location = point;
            this.VSListCT.Name = "VSListCT";
            this.VSListCT.Rows.Count = 1;
            this.VSListCT.Rows.DefaultSize = 0x11;
            this.VSListCT.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x27d, 0x166);
            this.VSListCT.Size = size;
            this.VSListCT.StyleInfo = manager.GetString("VSListCT.StyleInfo");
            this.VSListCT.TabIndex = 2;
            this.VSListCT.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdRefesh);
            this.Panel1.Controls.Add(this.updThang);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.updNam);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x27d, 30);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x11;
            this.CmdRefesh.Image = (Image) manager.GetObject("CmdRefesh.Image");
            this.CmdRefesh.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xe3, 3);
            this.CmdRefesh.Location = point;
            this.CmdRefesh.Name = "CmdRefesh";
            size = new Size(0x51, 0x19);
            this.CmdRefesh.Size = size;
            this.CmdRefesh.TabIndex = 0x10;
            this.CmdRefesh.Text = "Refresh";
            this.CmdRefesh.UseVisualStyleBackColor = true;
            point = new Point(0x38, 5);
            this.updThang.Location = point;
            decimal num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x2d, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 12;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0x77, 8);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x1d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 15;
            this.Label2.Text = "Năm";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(10, 8);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 13;
            this.Label1.Text = "Th\x00e1ng";
            point = new Point(0x9b, 5);
            this.updNam.Location = point;
            num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            size = new Size(0x3a, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 14;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Value = num;
            this.C1DockingTabPage4.Controls.Add(this.lblCoQuanThue);
            this.C1DockingTabPage4.Controls.Add(this.lblMSTDonViChuQuan);
            this.C1DockingTabPage4.Controls.Add(this.lblDonViChuQuan);
            this.C1DockingTabPage4.Controls.Add(this.Label5);
            this.C1DockingTabPage4.Controls.Add(this.CboMauMD);
            this.C1DockingTabPage4.Controls.Add(this.updDaNhapTTCT);
            this.C1DockingTabPage4.Controls.Add(this.txtLoaiHoaDonInMacDinh);
            this.C1DockingTabPage4.Controls.Add(this.CmdSDHD);
            this.C1DockingTabPage4.Controls.Add(this.CmdMauHD);
            this.C1DockingTabPage4.Controls.Add(this.Label7);
            this.C1DockingTabPage4.Controls.Add(this.CboLoaiIn);
            this.C1DockingTabPage4.Controls.Add(this.updSoLien);
            this.C1DockingTabPage4.Controls.Add(this.Label4);
            this.C1DockingTabPage4.Controls.Add(this.GroupBox6);
            this.C1DockingTabPage4.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x1d);
            this.C1DockingTabPage4.Location = point;
            this.C1DockingTabPage4.Name = "C1DockingTabPage4";
            size = new Size(0x27d, 0x184);
            this.C1DockingTabPage4.Size = size;
            this.C1DockingTabPage4.TabIndex = 3;
            this.C1DockingTabPage4.Text = "Thiết lập h\x00f3a đơn tự in";
            this.lblCoQuanThue.AutoSize = true;
            point = new Point(0x354, 0x11c);
            this.lblCoQuanThue.Location = point;
            this.lblCoQuanThue.Name = "lblCoQuanThue";
            size = new Size(0x51, 13);
            this.lblCoQuanThue.Size = size;
            this.lblCoQuanThue.TabIndex = 0x4b;
            this.lblCoQuanThue.Text = "lblCoQuanThue";
            this.lblMSTDonViChuQuan.AutoSize = true;
            point = new Point(0x354, 0x137);
            this.lblMSTDonViChuQuan.Location = point;
            this.lblMSTDonViChuQuan.Name = "lblMSTDonViChuQuan";
            size = new Size(0x72, 13);
            this.lblMSTDonViChuQuan.Size = size;
            this.lblMSTDonViChuQuan.TabIndex = 0x4a;
            this.lblMSTDonViChuQuan.Text = "lblMSTDonViChuQuan";
            this.lblDonViChuQuan.AutoSize = true;
            point = new Point(0x354, 0x14f);
            this.lblDonViChuQuan.Location = point;
            this.lblDonViChuQuan.Name = "lblDonViChuQuan";
            size = new Size(0x5b, 13);
            this.lblDonViChuQuan.Size = size;
            this.lblDonViChuQuan.TabIndex = 0x49;
            this.lblDonViChuQuan.Text = "lblDonViChuQuan";
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(0x1a1, 0x117);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x69, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x48;
            this.Label5.Text = "Mẫu HĐ in mặc định";
            this.CboMauMD.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboMauMD.FormattingEnabled = true;
            point = new Point(0x20b, 0x114);
            this.CboMauMD.Location = point;
            this.CboMauMD.Name = "CboMauMD";
            size = new Size(0x6a, 0x15);
            this.CboMauMD.Size = size;
            this.CboMauMD.TabIndex = 0x47;
            point = new Point(0x357, 0x16b);
            this.updDaNhapTTCT.Location = point;
            this.updDaNhapTTCT.Name = "updDaNhapTTCT";
            this.updDaNhapTTCT.ReadOnly = true;
            size = new Size(0x2b, 20);
            this.updDaNhapTTCT.Size = size;
            this.updDaNhapTTCT.TabIndex = 70;
            this.updDaNhapTTCT.Visible = false;
            point = new Point(0x388, 0x16b);
            this.txtLoaiHoaDonInMacDinh.Location = point;
            this.txtLoaiHoaDonInMacDinh.Name = "txtLoaiHoaDonInMacDinh";
            this.txtLoaiHoaDonInMacDinh.ReadOnly = true;
            size = new Size(0x55, 20);
            this.txtLoaiHoaDonInMacDinh.Size = size;
            this.txtLoaiHoaDonInMacDinh.TabIndex = 0x45;
            this.txtLoaiHoaDonInMacDinh.Visible = false;
            point = new Point(140, 0xd6);
            this.CmdSDHD.Location = point;
            this.CmdSDHD.Name = "CmdSDHD";
            size = new Size(0x83, 0x33);
            this.CmdSDHD.Size = size;
            this.CmdSDHD.TabIndex = 0x44;
            this.CmdSDHD.Text = "Đăng k\x00fd\r\nSử dụng H\x00f3a Đơn";
            this.CmdSDHD.UseVisualStyleBackColor = true;
            point = new Point(3, 0xd6);
            this.CmdMauHD.Location = point;
            this.CmdMauHD.Name = "CmdMauHD";
            size = new Size(0x83, 0x33);
            this.CmdMauHD.Size = size;
            this.CmdMauHD.TabIndex = 0x43;
            this.CmdMauHD.Text = "Quản l\x00fd\r\nMẫu H\x00f3a Đơn - K\x00fd Hiệu";
            this.CmdMauHD.UseVisualStyleBackColor = true;
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(0x1a1, 0xfc);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x68, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x42;
            this.Label7.Text = "Loại in HĐ mặc định";
            this.CboLoaiIn.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiIn.FormattingEnabled = true;
            point = new Point(0x20b, 0xf9);
            this.CboLoaiIn.Location = point;
            this.CboLoaiIn.Name = "CboLoaiIn";
            size = new Size(0x6a, 0x15);
            this.CboLoaiIn.Size = size;
            this.CboLoaiIn.TabIndex = 0x41;
            this.updSoLien.Enabled = false;
            point = new Point(0x231, 0xdf);
            this.updSoLien.Location = point;
            num = new decimal(new int[] { 9, 0, 0, 0 });
            this.updSoLien.Maximum = num;
            this.updSoLien.Name = "updSoLien";
            this.updSoLien.ReadOnly = true;
            size = new Size(0x44, 20);
            this.updSoLien.Size = size;
            this.updSoLien.TabIndex = 5;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updSoLien.Value = num;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(0x18e, 0xe1);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x9d, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 4;
            this.Label4.Text = "Số li\x00ean trong một lần in h\x00f3a đơn";
            this.GroupBox6.BackColor = Color.Transparent;
            this.GroupBox6.Controls.Add(this.VS_Lien);
            this.GroupBox6.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.GroupBox6.Location = point;
            this.GroupBox6.Name = "GroupBox6";
            size = new Size(0x27d, 0xd3);
            this.GroupBox6.Size = size;
            this.GroupBox6.TabIndex = 3;
            this.GroupBox6.TabStop = false;
            this.GroupBox6.Text = "Điều chỉnh Li\x00ean";
            this.VS_Lien.AutoResize = false;
            this.VS_Lien.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VS_Lien.ColumnInfo = manager.GetString("VS_Lien.ColumnInfo");
            this.VS_Lien.Dock = DockStyle.Fill;
            this.VS_Lien.ExtendLastCol = true;
            this.VS_Lien.FocusRect = FocusRectEnum.None;
            point = new Point(3, 0x10);
            this.VS_Lien.Location = point;
            this.VS_Lien.Name = "VS_Lien";
            this.VS_Lien.Rows.Count = 1;
            this.VS_Lien.Rows.DefaultSize = 0x11;
            this.VS_Lien.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x277, 0xc0);
            this.VS_Lien.Size = size;
            this.VS_Lien.StyleInfo = manager.GetString("VS_Lien.StyleInfo");
            this.VS_Lien.TabIndex = 2;
            this.VS_Lien.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.CmdThoat);
            this.Panel2.Controls.Add(this.CmdChon);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x1a2);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x27f, 0x20);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x42;
            this.CmdThoat.DialogResult = DialogResult.Cancel;
            this.CmdThoat.Image = (Image) manager.GetObject("CmdThoat.Image");
            this.CmdThoat.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(550, 2);
            this.CmdThoat.Location = point;
            this.CmdThoat.Name = "CmdThoat";
            size = new Size(80, 0x1b);
            this.CmdThoat.Size = size;
            this.CmdThoat.TabIndex = 0x40;
            this.CmdThoat.Text = "&Tho\x00e1t";
            this.CmdThoat.UseVisualStyleBackColor = true;
            this.CmdChon.Image = (Image) manager.GetObject("CmdChon.Image");
            this.CmdChon.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x1d4, 2);
            this.CmdChon.Location = point;
            this.CmdChon.Name = "CmdChon";
            size = new Size(0x4f, 0x1b);
            this.CmdChon.Size = size;
            this.CmdChon.TabIndex = 0x3f;
            this.CmdChon.Text = "&Chọn";
            this.CmdChon.UseVisualStyleBackColor = true;
            this.C1DockingTabPage6.Controls.Add(this.C1FlexGrid2);
            point = new Point(1, 0x18);
            this.C1DockingTabPage6.Location = point;
            this.C1DockingTabPage6.Name = "C1DockingTabPage6";
            size = new Size(0xc7, 0x3e);
            this.C1DockingTabPage6.Size = size;
            this.C1DockingTabPage6.TabIndex = 0;
            this.C1DockingTabPage6.Text = "Danh s\x00e1ch mẫu h\x00f3a đơn";
            this.C1FlexGrid2.AutoResize = false;
            this.C1FlexGrid2.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.C1FlexGrid2.ColumnInfo = "3,0,0,0,0,85,Columns:0{Width:83;Caption:\"Mẫu h\x00f3a đơn\";Visible:False;Style:\"DataType:System.String;TextAlign:LeftCenter;\";}\t1{Width:90;Caption:\"Mẫu h\x00f3a đơn\";}\t2{Caption:\"Diễn giải\";Visible:False;}\t";
            this.C1FlexGrid2.Dock = DockStyle.Fill;
            this.C1FlexGrid2.ExtendLastCol = true;
            this.C1FlexGrid2.FocusRect = FocusRectEnum.None;
            point = new Point(0, 0);
            this.C1FlexGrid2.Location = point;
            this.C1FlexGrid2.Name = "C1FlexGrid2";
            this.C1FlexGrid2.Rows.Count = 1;
            this.C1FlexGrid2.Rows.DefaultSize = 0x11;
            this.C1FlexGrid2.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0xc7, 0x3e);
            this.C1FlexGrid2.Size = size;
            this.C1FlexGrid2.StyleInfo = manager.GetString("C1FlexGrid2.StyleInfo");
            this.C1FlexGrid2.TabIndex = 9;
            this.C1FlexGrid2.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x27f, 450);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.TabConfig);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_GiaTriMacDinh";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "HT-0006";
            this.Text = "GIA TRI MAC DINH";
            ((ISupportInitialize) this.TabConfig).EndInit();
            this.TabConfig.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.GroupBox5.ResumeLayout(false);
            this.GroupBox5.PerformLayout();
            this.GroupBox4.ResumeLayout(false);
            this.GroupBox4.PerformLayout();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            this.GroupBox3.ResumeLayout(false);
            this.GroupBox3.PerformLayout();
            this.C1DockingTabPage2.ResumeLayout(false);
            this.VSListDK.EndInit();
            this.C1DockingTabPage3.ResumeLayout(false);
            this.VSListCT.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.updThang.EndInit();
            this.updNam.EndInit();
            this.C1DockingTabPage4.ResumeLayout(false);
            this.C1DockingTabPage4.PerformLayout();
            this.updDaNhapTTCT.EndInit();
            this.updSoLien.EndInit();
            this.GroupBox6.ResumeLayout(false);
            this.VS_Lien.EndInit();
            this.Panel2.ResumeLayout(false);
            this.C1DockingTabPage6.ResumeLayout(false);
            this.C1FlexGrid2.EndInit();
            this.ResumeLayout(false);
        }

        public void LoadConfig()
        {
            this.objCP.Load();
            clsConfig objCP = this.objCP;
            string phuongPhapGiaTonKho = objCP.PhuongPhapGiaTonKho;
            if (phuongPhapGiaTonKho == "A")
            {
                this.OptBinhQuanGiaQuyen.Checked = true;
            }
            else if (phuongPhapGiaTonKho == "F")
            {
                this.OptFiFo.Checked = true;
            }
            else if (phuongPhapGiaTonKho == "L")
            {
                this.OptLifo.Checked = true;
            }
            else if (phuongPhapGiaTonKho == "D")
            {
                this.OptDichDanh.Checked = true;
            }
            switch (objCP.ThayDoiChungTu)
            {
                case "Y":
                    this.OptTheoNam.Checked = true;
                    break;

                case "Q":
                    this.OptTheoQuy.Checked = true;
                    break;

                case "M":
                    this.OptTheoThang.Checked = true;
                    break;
            }
            if (objCP.TheoDoiSoLohang == 1)
            {
                this.CKTheoDoiSoLo.Checked = true;
            }
            else
            {
                this.CKTheoDoiSoLo.Checked = false;
            }
            if (objCP.TheoDoiSoSeri == 1)
            {
                this.CKTheoDoiSeri.CheckState = CheckState.Checked;
            }
            else
            {
                this.CKTheoDoiSeri.CheckState = CheckState.Unchecked;
            }
            if (objCP.TheoDoiHanSuDung == 1)
            {
                this.CKHanDung.CheckState = CheckState.Checked;
            }
            else
            {
                this.CKHanDung.CheckState = CheckState.Unchecked;
            }
            if (objCP.TheoDoiQuayKe == 1)
            {
                this.CKQuayKe.CheckState = CheckState.Checked;
            }
            else
            {
                this.CKQuayKe.CheckState = CheckState.Unchecked;
            }
            this.CboKho.SelectedValue = LVYModule.ReturnIfNull(objCP.KhoaKhoMacDinh, "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            if (objCP.GiaBanBaoGomThue == 1)
            {
                this.CKTachThue.CheckState = CheckState.Checked;
            }
            else
            {
                this.CKTachThue.CheckState = CheckState.Unchecked;
            }
            if (objCP.TheoDoiSoSeriKhiXuat == 1)
            {
                this.CKTheoDoiSeriKhiBan.Checked = true;
            }
            else
            {
                this.CKTheoDoiSeriKhiBan.Checked = false;
            }
            if (objCP.ChoPhepXuatAm == 1)
            {
                this.CKXuatAm.Checked = true;
            }
            else
            {
                this.CKXuatAm.Checked = false;
            }
            if (objCP.ChoPhepAmQuy == 1)
            {
                this.CKAmQuy.Checked = true;
            }
            else
            {
                this.CKAmQuy.Checked = false;
            }
            if (objCP.ChonHangXuatTuDanhMuc == 1)
            {
                this.OptChonHangTuDM.Checked = true;
            }
            this.updSoLien.Value = Conversions.ToDecimal(LVYModule.ReturnIfNull(objCP.SoLienIn, 0, modGeneral.TypeOfValue.Nothing));
            if (objCP.LoaiInMacDinh.Trim() != "")
            {
                this.CboLoaiIn.SelectedValue = objCP.LoaiInMacDinh.Trim();
            }
            this.txtLoaiHoaDonInMacDinh.Text = objCP.LoaiHoaDonInMacDinh.Trim();
            this.updDaNhapTTCT.Value = Conversions.ToDecimal(LVYModule.ReturnIfNull(objCP.DaNhapTTCT, 0, modGeneral.TypeOfValue.Nothing));
            if (objCP.MauHoaDonMacDinh.Trim() != "")
            {
                this.CboMauMD.SelectedValue = objCP.MauHoaDonMacDinh.Trim();
            }
            else
            {
                this.CboMauMD.SelectedValue = "";
            }
            this.CKKhongCheCongNo.Checked = objCP.KhongXuatNoQuaDinhMuc == 1;
            this.lblDonViChuQuan.Text = objCP.DonViChuQuan.Trim();
            this.lblMSTDonViChuQuan.Text = objCP.MSTDonViChuQuan.Trim();
            this.lblCoQuanThue.Text = objCP.CoQuanThue.Trim();
            objCP = null;
        }

        public void LoadDinhKhoan()
        {
            DataTable table = this.objDK.LoadDinhKhoanList("");
            this.VSListDK.Rows.Count = 1;
            if (table != null)
            {
                string str = "";
                C1.Win.C1FlexGrid.C1FlexGrid vSListDK = this.VSListDK;
                vSListDK.Tree.Column = 1;
                vSListDK.Tree.Style = TreeStyleFlags.SimpleLeaf;
                int num2 = table.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(str.Trim(), table.Rows[i]["KhoaNghiepVu"], false))
                    {
                        str = Conversions.ToString(table.Rows[i]["KhoaNghiepVu"]);
                        vSListDK.Rows.InsertNode(vSListDK.Rows.Count, 1);
                        vSListDK[vSListDK.Rows.Count - 1, 0] = "A";
                        vSListDK[vSListDK.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["NghiepVu"]);
                        CellStyle style = vSListDK.Styles["Red"];
                        if (style == null)
                        {
                            style = vSListDK.Styles.Add("Red");
                            style.BackColor = Color.DarkSeaGreen;
                            style.Border.Style = C1.Win.C1FlexGrid.BorderStyleEnum.None;
                            style.Font = new Font(this.Font, FontStyle.Bold);
                        }
                        //vSListDK.GetCellRange(vSListDK.Rows.Count - 1, 0, vSListDK.Rows.Count - 1, vSListDK.Cols.Count - 1).Style = style;
                        vSListDK.Rows.InsertNode(vSListDK.Rows.Count, 2);
                        vSListDK[vSListDK.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["Ma"]);
                        vSListDK[vSListDK.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiai"]);
                        vSListDK[vSListDK.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(table.Rows[i]["GiaTri"]);
                        vSListDK[vSListDK.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoTaiKhoan"]);
                    }
                    else
                    {
                        str = Conversions.ToString(table.Rows[i]["KhoaNghiepVu"]);
                        vSListDK.Rows.InsertNode(vSListDK.Rows.Count, 2);
                        vSListDK[vSListDK.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["Ma"]);
                        vSListDK[vSListDK.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiai"]);
                        vSListDK[vSListDK.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(table.Rows[i]["GiaTri"]);
                        vSListDK[vSListDK.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoTaiKhoan"]);
                    }
                }
                vSListDK = null;
            }
        }

        public void LoadDSLien(int intSoLien)
        {
            DataTable table = this.objDK.LoadLienList(intSoLien, "");
            this.VS_Lien.Rows.Count = 1;
            if (table != null)
            {
                C1.Win.C1FlexGrid.C1FlexGrid grid = this.VS_Lien;
                int num2 = table.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    grid.AddItem("");
                    grid[grid.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["Khoa"]);
                    grid[grid.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["TenViet"]);
                    grid[grid.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiaiViet"]);
                    grid[grid.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["TenAnh"]);
                    grid[grid.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiaiAnh"]);
                }
                grid = null;
                this.VS_Lien.Rows[1].AllowEditing = false;
                this.VS_Lien.Rows[2].AllowEditing = false;
            }
        }

        public void LoadSoChungTu()
        {
            string strNamThang = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string str2 = modGeneral.H_THAYDOICHUNGTU;
            DataTable table = this.objCT.LoadChungTu(modGeneral.H_THAYDOICHUNGTU, strNamThang, "");
            this.VSListCT.Rows.Count = 1;
            if (table != null)
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSListCT = this.VSListCT;
                int num2 = table.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    vSListCT.AddItem("");
                    vSListCT[vSListCT.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(table.Rows[i]["LoaiChungTu"]);
                    vSListCT[vSListCT.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(table.Rows[i]["DienGiai"]);
                    vSListCT[vSListCT.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(table.Rows[i]["ChieuDai"]);
                    vSListCT[vSListCT.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(table.Rows[i]["TienTo"]);
                    vSListCT[vSListCT.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(table.Rows[i]["SoChungTu"]);
                }
                vSListCT = null;
            }
        }

        private void OptBinhQuanGiaQuyen_Click(object sender, EventArgs e)
        {
        }

        public void SaveConfig()
        {
            clsConfig objCP = this.objCP;
            if (this.OptBinhQuanGiaQuyen.Checked)
            {
                objCP.PhuongPhapGiaTonKho = "A";
            }
            if (this.OptFiFo.Checked)
            {
                objCP.PhuongPhapGiaTonKho = "F";
            }
            if (this.OptLifo.Checked)
            {
                objCP.PhuongPhapGiaTonKho = "L";
            }
            if (this.OptDichDanh.Checked)
            {
                objCP.PhuongPhapGiaTonKho = "D";
            }
            if (this.OptTheoNam.Checked)
            {
                objCP.ThayDoiChungTu = "Y";
            }
            if (this.OptTheoQuy.Checked)
            {
                objCP.ThayDoiChungTu = "Q";
            }
            if (this.OptTheoThang.Checked)
            {
                objCP.ThayDoiChungTu = "M";
            }
            objCP.KhoaKhoMacDinh = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKho.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim();
            if (this.CKTheoDoiSoLo.Checked)
            {
                objCP.TheoDoiSoLohang = 1;
            }
            else
            {
                objCP.TheoDoiSoLohang = 0;
            }
            if (this.CKTheoDoiSeri.CheckState == CheckState.Checked)
            {
                objCP.TheoDoiSoSeri = 1;
            }
            else
            {
                objCP.TheoDoiSoSeri = 0;
            }
            if (this.CKQuayKe.CheckState == CheckState.Checked)
            {
                objCP.TheoDoiQuayKe = 1;
            }
            else
            {
                objCP.TheoDoiQuayKe = 0;
            }
            if (this.CKHanDung.CheckState == CheckState.Checked)
            {
                objCP.TheoDoiHanSuDung = 1;
            }
            else
            {
                objCP.TheoDoiHanSuDung = 0;
            }
            objCP.GhiSoDongThoi = 1;
            if (this.CKTachThue.CheckState == CheckState.Checked)
            {
                objCP.GiaBanBaoGomThue = 1;
            }
            else
            {
                objCP.GiaBanBaoGomThue = 0;
            }
            if (this.CKXuatAm.Checked)
            {
                objCP.ChoPhepXuatAm = 1;
            }
            else
            {
                objCP.ChoPhepXuatAm = 0;
            }
            if (this.CKTheoDoiSeriKhiBan.Checked)
            {
                objCP.TheoDoiSoSeriKhiXuat = 1;
            }
            else
            {
                objCP.TheoDoiSoSeriKhiXuat = 0;
            }
            if (this.CKKhongCheCongNo.Checked)
            {
                objCP.KhongXuatNoQuaDinhMuc = 1;
            }
            else
            {
                objCP.KhongXuatNoQuaDinhMuc = 0;
            }
            if (this.CKAmQuy.Checked)
            {
                objCP.ChoPhepAmQuy = 1;
            }
            else
            {
                objCP.ChoPhepAmQuy = 0;
            }
            if (this.OptChonHangTuDM.Checked)
            {
                objCP.ChonHangXuatTuDanhMuc = 1;
            }
            else
            {
                objCP.ChonHangXuatTuDanhMuc = 0;
            }
            objCP.SoLienIn = Convert.ToInt32(this.updSoLien.Value);
            objCP.LoaiInMacDinh = Conversions.ToString(NewLateBinding.LateGet(this.CboLoaiIn.SelectedValue, null, "Trim", new object[0], null, null, null));
            objCP.LoaiHoaDonInMacDinh = this.txtLoaiHoaDonInMacDinh.Text.Trim();
            objCP.DaNhapTTCT = Convert.ToInt32(this.updDaNhapTTCT.Value);
            objCP.MauHoaDonMacDinh = Conversions.ToString(LVYModule.ReturnIfNull(this.CboMauMD.SelectedValue.ToString().Trim(), "", modGeneral.TypeOfValue.Nothing));
            objCP.DonViChuQuan = this.lblDonViChuQuan.Text.Trim();
            objCP.MSTDonViChuQuan = this.lblMSTDonViChuQuan.Text.Trim();
            objCP.CoQuanThue = this.lblCoQuanThue.Text.Trim();
            objCP.Save();
            objCP = null;
            string str2 = "M";
            if (this.OptTheoThang.Checked)
            {
                str2 = "M";
            }
            if (this.OptTheoQuy.Checked)
            {
                str2 = "Q";
            }
            if (this.OptTheoNam.Checked)
            {
                str2 = "Y";
            }
            string commandText = " UPDATE HT_SoChungTu set Loai = '" + str2 + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public void SaveConfigChungTu(int nRow)
        {
            string str3 = Conversions.ToString(this.VSListCT[nRow, 3]);
            string str = this.VSListCT[nRow, 0].ToString().Trim();
            int num = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListCT[nRow, 2]), 0, modGeneral.TypeOfValue.Nothing));
            string commandText = " UPDATE HT_SoChungTu set TienTo = '" + str3 + "', ChieuDai = " + Conversions.ToString(num) + " WHERE LoaiChungTu = '" + str + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public void SaveDinhKhoan(int nRow)
        {
            string str = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDK[nRow, 2]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            string str2 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDK[nRow, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            string commandText = " UPDATE HT_DefaultValue SET GiaTri = '" + str + "' WHERE RTRIM(Ma) = '" + str2 + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public void SaveDSLien(int nRow)
        {
            string commandText = "";
            string str3 = "";
            string str2 = "";
            string str = "";
            str3 = this.VS_Lien[nRow, 0].ToString().Trim();
            str2 = this.VS_Lien[nRow, 2].ToString();
            str = this.VS_Lien[nRow, 4].ToString();
            commandText = " UPDATE HT_DSLien Set DienGiaiViet = N'" + str2 + "', DienGiaiAnh = N'" + str + "' where Khoa = '" + str3 + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public void SaveSoChungTu(int nRow)
        {
            string commandText = "";
            string str4 = "";
            string strMonth = "";
            string str = this.VSListCT[nRow, 0].ToString().Trim();
            double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListCT[nRow, 4]), 0, modGeneral.TypeOfValue.Nothing));
            strMonth = this.updNam.Value.ToString() + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            switch (modGeneral.H_THAYDOICHUNGTU)
            {
                case "M":
                    str4 = " SoChungTuThang = " + Conversions.ToString(num) + " WHERE Thang = '" + strMonth + "'";
                    break;

                case "Q":
                    str4 = " SoChungTuQuy = " + Conversions.ToString(num) + " WHERE Quy = '" + LVYModule.Month2Quarter(strMonth) + "'";
                    break;

                case "Y":
                    str4 = " SoChungTuNam = " + Conversions.ToString(num) + " WHERE Nam = '" + LVYModule.sLeft(strMonth, 4) + "'";
                    break;
            }
            str4 = str4 + " AND Rtrim(LoaiChungTu) = '" + str + "'";
            commandText = " UPDATE HT_CapSoChungTu_New Set" + str4;
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        private void VS_Lien_AfterEdit(object sender, RowColEventArgs e)
        {
            this.SaveDSLien(e.Row);
        }

        private void VSListCT_AfterEdit(object sender, RowColEventArgs e)
        {
            if (e.Col == 4)
            {
                this.SaveSoChungTu(e.Row);
            }
            else
            {
                this.SaveConfigChungTu(e.Row);
            }
        }

        private void VSListCT_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (e.Col < 2)
            {
                e.Cancel = true;
            }
        }

        private void VSListDK_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (this.VSListDK[e.Row, 0].ToString().Trim() == "A")
            {
                e.Cancel = true;
            }
            else if (e.Col < 3)
            {
                e.Cancel = true;
            }
        }

        private void VSListDK_CellButtonClick(object sender, RowColEventArgs e)
        {
            string expression = "";
            if (e.Col == 3)
            {
                expression = SearchModule.SearchTaiKhoan("", "", "", "", "");
                if (expression != "")
                {
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSListDK[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSListDK[e.Row, 3] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 1 }, null));
                }
            }
            this.SaveDinhKhoan(e.Row);
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage4 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage6 = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid C1FlexGrid2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1FlexGrid2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1FlexGrid2 = value;
            }
        }

        internal virtual ComboBox CboKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKho = value;
            }
        }

        internal virtual ComboBox CboLoaiIn
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiIn;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiIn = value;
            }
        }

        internal virtual ComboBox CboMauMD
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboMauMD;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboMauMD = value;
            }
        }

        internal virtual CheckBox CheckBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CheckBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CheckBox2 = value;
            }
        }

        internal virtual CheckBox CKAmQuy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKAmQuy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKAmQuy = value;
            }
        }

        internal virtual CheckBox CKHanDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKHanDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._CKHanDung != null)
                {
                    this._CKHanDung.Click -= handler;
                }
                this._CKHanDung = value;
                if (this._CKHanDung != null)
                {
                    this._CKHanDung.Click += handler;
                }
            }
        }

        internal virtual CheckBox CKKhongCheCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKKhongCheCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKKhongCheCongNo = value;
            }
        }

        internal virtual CheckBox CKQuayKe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKQuayKe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._CKQuayKe != null)
                {
                    this._CKQuayKe.Click -= handler;
                }
                this._CKQuayKe = value;
                if (this._CKQuayKe != null)
                {
                    this._CKQuayKe.Click += handler;
                }
            }
        }

        internal virtual CheckBox CKTachThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKTachThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKTachThue = value;
            }
        }

        internal virtual CheckBox CKTheoDoiSeri
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKTheoDoiSeri;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._CKTheoDoiSeri != null)
                {
                    this._CKTheoDoiSeri.Click -= handler;
                }
                this._CKTheoDoiSeri = value;
                if (this._CKTheoDoiSeri != null)
                {
                    this._CKTheoDoiSeri.Click += handler;
                }
            }
        }

        internal virtual CheckBox CKTheoDoiSeriKhiBan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKTheoDoiSeriKhiBan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKTheoDoiSeriKhiBan = value;
            }
        }

        internal virtual CheckBox CKTheoDoiSoLo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKTheoDoiSoLo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKTheoDoiSoLo = value;
            }
        }

        internal virtual CheckBox CKXuatAm
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKXuatAm;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKXuatAm = value;
            }
        }

        internal virtual Button CmdChon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdChon_Click);
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click -= handler;
                }
                this._CmdChon = value;
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click += handler;
                }
            }
        }

        internal virtual Button CmdMauHD
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdMauHD;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdMauHD_Click);
                if (this._CmdMauHD != null)
                {
                    this._CmdMauHD.Click -= handler;
                }
                this._CmdMauHD = value;
                if (this._CmdMauHD != null)
                {
                    this._CmdMauHD.Click += handler;
                }
            }
        }

        internal virtual Button CmdRefesh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefesh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRefesh_Click);
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click -= handler;
                }
                this._CmdRefesh = value;
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click += handler;
                }
            }
        }

        internal virtual Button CmdSDHD
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSDHD;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSDHD_Click);
                if (this._CmdSDHD != null)
                {
                    this._CmdSDHD.Click -= handler;
                }
                this._CmdSDHD = value;
                if (this._CmdSDHD != null)
                {
                    this._CmdSDHD.Click += handler;
                }
            }
        }

        internal virtual Button CmdThoat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdThoat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdThoat_Click);
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click -= handler;
                }
                this._CmdThoat = value;
                if (this._CmdThoat != null)
                {
                    this._CmdThoat.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual GroupBox GroupBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox3 = value;
            }
        }

        internal virtual GroupBox GroupBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox4 = value;
            }
        }

        internal virtual GroupBox GroupBox5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox5 = value;
            }
        }

        internal virtual GroupBox GroupBox6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox6 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label lblCoQuanThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._lblCoQuanThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._lblCoQuanThue = value;
            }
        }

        internal virtual Label lblDonViChuQuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._lblDonViChuQuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._lblDonViChuQuan = value;
            }
        }

        internal virtual Label lblMSTDonViChuQuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._lblMSTDonViChuQuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._lblMSTDonViChuQuan = value;
            }
        }

        internal virtual RadioButton OptBinhQuanGiaQuyen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptBinhQuanGiaQuyen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptBinhQuanGiaQuyen != null)
                {
                    this._OptBinhQuanGiaQuyen.Click -= handler;
                }
                this._OptBinhQuanGiaQuyen = value;
                if (this._OptBinhQuanGiaQuyen != null)
                {
                    this._OptBinhQuanGiaQuyen.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptChonHangTuDM
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptChonHangTuDM;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptChonHangTuDM = value;
            }
        }

        internal virtual RadioButton OptChonHangXuatTuTK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptChonHangXuatTuTK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptChonHangXuatTuTK = value;
            }
        }

        internal virtual RadioButton OptDichDanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptDichDanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptDichDanh != null)
                {
                    this._OptDichDanh.Click -= handler;
                }
                this._OptDichDanh = value;
                if (this._OptDichDanh != null)
                {
                    this._OptDichDanh.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptFiFo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptFiFo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptFiFo != null)
                {
                    this._OptFiFo.Click -= handler;
                }
                this._OptFiFo = value;
                if (this._OptFiFo != null)
                {
                    this._OptFiFo.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptLifo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptLifo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptLifo != null)
                {
                    this._OptLifo.Click -= handler;
                }
                this._OptLifo = value;
                if (this._OptLifo != null)
                {
                    this._OptLifo.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptTheoNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTheoNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptTheoNam != null)
                {
                    this._OptTheoNam.Click -= handler;
                }
                this._OptTheoNam = value;
                if (this._OptTheoNam != null)
                {
                    this._OptTheoNam.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptTheoQuy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTheoQuy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptTheoQuy != null)
                {
                    this._OptTheoQuy.Click -= handler;
                }
                this._OptTheoQuy = value;
                if (this._OptTheoQuy != null)
                {
                    this._OptTheoQuy.Click += handler;
                }
            }
        }

        internal virtual RadioButton OptTheoThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTheoThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OptBinhQuanGiaQuyen_Click);
                if (this._OptTheoThang != null)
                {
                    this._OptTheoThang.Click -= handler;
                }
                this._OptTheoThang = value;
                if (this._OptTheoThang != null)
                {
                    this._OptTheoThang.Click += handler;
                }
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual C1DockingTab TabConfig
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabConfig;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabConfig = value;
            }
        }

        internal virtual TextBox txtLoaiHoaDonInMacDinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtLoaiHoaDonInMacDinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtLoaiHoaDonInMacDinh = value;
            }
        }

        internal virtual NumericUpDown updDaNhapTTCT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updDaNhapTTCT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updDaNhapTTCT = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updNam = value;
            }
        }

        internal virtual NumericUpDown updSoLien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updSoLien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updSoLien = value;
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThang = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VS_Lien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VS_Lien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VS_Lien_AfterEdit);
                if (this._VS_Lien != null)
                {
                    this._VS_Lien.AfterEdit -= handler;
                }
                this._VS_Lien = value;
                if (this._VS_Lien != null)
                {
                    this._VS_Lien.AfterEdit += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListCT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListCT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSListCT_BeforeEdit);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSListCT_AfterEdit);
                if (this._VSListCT != null)
                {
                    this._VSListCT.BeforeEdit -= handler;
                    this._VSListCT.AfterEdit -= handler2;
                }
                this._VSListCT = value;
                if (this._VSListCT != null)
                {
                    this._VSListCT.BeforeEdit += handler;
                    this._VSListCT.AfterEdit += handler2;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListDK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListDK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSListDK_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSListDK_BeforeEdit);
                if (this._VSListDK != null)
                {
                    this._VSListDK.CellButtonClick -= handler;
                    this._VSListDK.BeforeEdit -= handler2;
                }
                this._VSListDK = value;
                if (this._VSListDK != null)
                {
                    this._VSListDK.CellButtonClick += handler;
                    this._VSListDK.BeforeEdit += handler2;
                }
            }
        }
    }
}

